//
// This file is part of an OMNeT++/OMNEST simulation example.
//
// Copyright (C) 1992-2008 Andras Varga
//
// This file is distributed WITHOUT ANY WARRANTY. See the file
// `license' for details on this and other legal matters.
//

//
// Model of the network, consisting of several clients, a server and a cloud
//
network TelnetNet
{
    parameters:
        int numClients @prompt("Number of clients") = default(4);
    submodules:
        server: TelnetServer {
            parameters:
                @display("p=426,178");
        }
        cloud: Cloud {
            parameters:
                @display("p=274,182");
            gates:
                g[numClients+1];
        }
        extClient[numClients]: ExtAndroidClient {
            parameters:
                addr = 1+index;
                srvAddr = 0;
                
                // @display("p=102,92;t=Run the simulation\\, then start:\ntelnet localhost 4242\nThen if on Unix\\, type:\nCtrl+] ``mode character''");
        }
    connections:
        server.g <--> cloud.g[0];
        extClient[i].g <--> cloud.g[i+1] for i=0..numClients-1;
}


